package temp.lho.lws.emum;

/**
 * @author liuws
 * @create 2020-07-03 11:59
 */
public enum MsgStatusEmum {

    /**
     * 登陆状态
     */
    USER_LOGIN_NAME_ERROR_MSG(-1, "用户名或密码不正确！"),
    USER_LOGIN_CODE_ERROR_MSG(-1, "验证码不正确！"),
    USER_LOGIN_SUCCESS_MSG(200, "登陆成功！"),
    USER_LOGIN_ERROR_MSG(-1, "登陆失败！"),

    //添加
    ADD_SUCCESS(200,"添加成功！"),
    ADD_ERROR(-1,"添加失败！"),

    //删除
    DELETE_SUCCESS(200,"删除成功！"),
    DELETE_ERROR(-1,"删除失败！"),

    //修改
    UPDATE_SUCCESS(200,"修改成功！"),
    UPDATE_ERROR(-1,"修改失败！"),

    //分配
    DISPATCH_SUCCESS(200,"分配成功！"),
    DISPATCH_ERROR(-1,"分配失败！"),

    //提交
    COMMIT_SUCCESS(200,"提交成功！"),
    COMMIT_ERROR(-1,"提交失败！"),

    //保存
    SAVE_SUCCESS(200,"保存成功！"),
    SAVE_ERROR(-1,"保存失败！"),

    //其他
    OTHER_SUCCESS(200,"成功！"),
    OTHER_ERROR(-1,"失败！");


    //状态码
    private Integer code;
    //提示信息
    private String msg;

    MsgStatusEmum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
